package light.mvc.model.sys;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import light.mvc.model.base.IdEntity;
@Entity
@Table(name="t_voter_info")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Tvoterinfo extends IdEntity implements Serializable{
	
	private Long voter_id;
	private Long user_id;
	private String result;
	private Date createdate;
	public Long getVoter_id() {
		return voter_id;
	}
	public void setVoter_id(Long voterId) {
		voter_id = voterId;
	}
	public Long getUser_id() {
		return user_id;
	}
	public void setUser_id(Long userId) {
		user_id = userId;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public Date getCreatedate() {
		return createdate;
	}
	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	public Tvoterinfo(Long voterId, Long userId, String result,
			Date createdate) {
		super();
		voter_id = voterId;
		user_id = userId;
		this.result = result;
		this.createdate = createdate;
	}
	public Tvoterinfo() {
		// TODO Auto-generated constructor stub
	}
}
